/* 侧边栏样式 */
.sidebar {
    transition: width 0.3s ease;
    background-color: #2c3e50; /* 使用深色背景 */
    color: white;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1); /* 添加阴影效果 */
    padding: 20px;
}

.sidebar.collapsed {
    width: 80px;
}

.sidebar.collapsed .nav-item span {
    display: none;
}

.sidebar .logo {
    margin-bottom: 40px;
    text-align: center;
}

.sidebar .nav-menu .nav-item {
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.sidebar .nav-menu .nav-item:hover {
    background-color: #34495e;
}

.sidebar .nav-menu .nav-item a {
    color: white;
    text-decoration: none;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    transition: opacity 0.3s ease;
}

.modal.show {
    display: block;
    opacity: 1;
}

.timeline-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background-color: #ccc;
}

.timeline-time {
    font-weight: bold;
}

.pagination a {
    transition: background - color 0.3s ease;
}

.pagination a.active {
    background-color: #007bff;
    color: white;
}

.pagination a:hover:not(.active) {
    background-color: #ddd;
}

/* 新增和调整样式以匹配图片风格 */
.bg-primary-dark {
    background-color: #2c3e50;
}

.text-primary-light {
    color: white;
}

.bg-secondary-light {
    background-color: #ecf0f1;
}

.text-secondary-dark {
    color: #333;
}

.btn-primary-custom {
    background-color: #3498db;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-primary-custom:hover {
    background-color: #2980b9;
}

.btn-secondary-custom {
    background-color: #bdc3c7;
    color: #333;
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-secondary-custom:hover {
    background-color: #aab2bd;
}

/* 统计卡片样式 */
.stat-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 添加阴影效果 */
    margin-bottom: 20px;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card i {
    font-size: 24px;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 20px;
    font-weight: bold;
}

.stat-label {
    color: #7f8c8d;
}

.stat-change {
    margin-top: 5px;
}

.stat-change i {
    font-size: 14px;
    margin-right: 5px;
}



.filter-group {
    margin-bottom: 15px;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #666;
}

.filter-group select,
.filter-group input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 150px;
}

.order-list {
    width: 100%;
    border-collapse: collapse;
}

.order-list th,
.order-list td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.order-list th {
    background-color: #34495e;
    color: white;
}

.order-list tr:hover {
    background-color: #f5f5f5;
}

.status {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.status-in-stock {
    background-color: #e5f7ee;
    color: #2ecc71;
}

.status-out-of-stock {
    background-color: #fee;
    color: #e74c3c;
}

.status-low-stock {
    background-color: #fff4e5;
    color: #f39c12;
}